package io.qar.controller;

import io.qar.commons.log.annotation.LogOperation;
import io.qar.commons.tools.constant.Constant;
import io.qar.commons.tools.page.PageData;
import io.qar.commons.tools.utils.Result;
import io.qar.commons.tools.validator.AssertUtils;
import io.qar.commons.tools.validator.ValidatorUtils;
import io.qar.commons.tools.validator.group.AddGroup;
import io.qar.commons.tools.validator.group.DefaultGroup;
import io.qar.commons.tools.validator.group.UpdateGroup;
import io.qar.dto.OriFocT2001DTO;
import io.qar.entity.OriFocT2001Entity;
import io.qar.service.OriFocT2001Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;


/**
* 航班动态原始表
*
* @author yyyyjinying 
* @since 3.0 2023-10-25
*/
@RestController
@RequestMapping("orifoct2001")
@Api(tags="航班动态原始表")
public class OriFocT2001Controller {
    @Autowired
    private OriFocT2001Service oriFocT2001Service;

    @GetMapping("list")
    // @PreAuthorize("hasAuthority('sys:orifoct2001:page')")
    public Result<PageData<OriFocT2001DTO>> list(@RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate){
        List<OriFocT2001Entity> list = oriFocT2001Service.getList(beginDate, endDate);
        return new Result().ok(list);
    }
}